package cn.ydt.ydt.pojo.community.dto;

import cn.ydt.ydt.pojo.valid.nucleicAcidTestAppointment.NucleicAcidTestAppointmentRegException;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;


@ApiModel(value = "核酸检测预约DTO")
@Data
public class NucleicAcidTestAppointmentDTO implements NucleicAcidTestAppointmentRegException, Serializable {
    private static final String VALIDATE_MESSAGE_PREFIX = "核酸预约";

    /**
     * 预约时间
     */
    @ApiModelProperty(value="预约时间",notes="冗余，历史",example = "2022-7-20 8:30:50",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nucleicAcidTestAppointmentTime;

    /**
     * 检测开始时间
     */
    @ApiModelProperty(value="检测开始时间",notes="冗余，历史",example = "2022-7-20 8:45:50",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nucleicAcidTestStartTime;

    /**
     * 检测结束时间
     */
    @ApiModelProperty(value="检测结束时间",notes="冗余，历史",example = "2022-7-20 8:45:50",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nucleicAcidTestEndTime;

    /**
     * 地址id
     */
    @ApiModelProperty(value="检测地址",notes="冗余，历史",example = "但是",required = true)
    private String address;

    /**
     * 社区id
     */
    @ApiModelProperty(value="社区id",notes="冗余，历史",example = "12",required = false)
    private Long communityId;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id",notes="冗余，历史",example = "123456",required = false)
    private Long userId;



}
